package com.lg.thread.day01.currentThreadExt;

/**
 * 线程的调用
 *
 * @author LG93
 * @create 2017-08-09 17:48
 **/
public class CountOperate extends Thread {

    public CountOperate() {
        System.out.println("CountOperate --- begin");
        System.out.println("|--->线程名称:"+Thread.currentThread().getName());
        System.out.println("|--->当前线程名称:"+this.getName());
        System.out.println("CountOperate --- end");
    }

    @Override
    public void run() {
        super.run();
        System.out.println("run --- begin");
        System.out.println("|--->线程名称:"+Thread.currentThread().getName());
        System.out.println("|--->当前线程名称:"+this.getName());
        System.out.println("run --- end");
    }
}
